﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Update
{
    public enum STARTUP_TYPES
    {
        /// <summary>
        /// Program direk başlatılmış.
        /// </summary>
        EXPLICIT,
        /// <summary>
        ///  Güncellenecek program içinden kullanıcı başlattı.
        /// </summary>
        BY_USER_ON_PROGRAM,
        /// <summary>        
        /// Güncellenecek program otomatik başlatıldı.
        /// </summary>
        ON_PROGRAM
    }


    public class StaticClass
    {
        

        public static readonly string DYS_CONFIG = "Dys.exe.Config";
        public static readonly string AYMED_SUITE_CONFIG = "Aymed.Analysis.Laboratory.exe.Config";

        public static readonly string DYS_UPDATE_FILE = "DysProgram.zip";
        public static readonly string AYMED_SUITE_UPDATE_FILE = "LocumProgram.zip";

        public static readonly int PROGRAM_SUITE = 1;
        public static readonly int PROGRAM_DYS = 2;
        
        public static readonly int STARTUP_EXPLICIT = 1; 
                
        public static readonly int STARTUP_BY_USER_ON_PROGRAM = 2; 
              
        public static readonly int STARTUP_ON_PROGRAM = 3;

        public static STARTUP_TYPES TYPE_STARTUP = STARTUP_TYPES.ON_PROGRAM;

        public static int programType = StaticClass.PROGRAM_SUITE;
        public static string ConfigName = StaticClass.DYS_CONFIG;
        public static string updateFile = StaticClass.DYS_UPDATE_FILE;

        public static int processID = -1;

        //public static void initializeGlobalVariables()
        //{            
        //    if (programType == PROGRAM_SUITE)
        //    {
        //        ConfigName = AYMED_SUITE_CONFIG;
        //        updateFile = AYMED_SUITE_UPDATE_FILE;
        //    }
        //    else if (programType == PROGRAM_DYS)
        //    {
        //        ConfigName = DYS_CONFIG;
        //        updateFile = DYS_UPDATE_FILE;
        //    }
        //}
    }
}
